package com.tiancheng.trade.order.vo.parallel;

import jakarta.validation.constraints.NotEmpty;
import lombok.Getter;
import lombok.Setter;

/**
 * 苹果内购——订单支付参数
 *
 * @author lkl
 * @date 2022/05/30
 */
@Getter
@Setter
public class AppleInAppPayVO {

    // 用户id
    private String uid;
    @NotEmpty(message = "交易中台订单号不允许为空")
    private String orderId;
    // 苹果支付成功返回凭证，验证的重要依据
    @NotEmpty(message = "苹果交易凭据不允许为空")
    private String receiptData;
    //交易标识符
    @NotEmpty(message = "苹果交易单号不允许为空")
    private String transactionId;
    // 支付场景
    @NotEmpty(message = "支付场景不允许为空")
    private String payScene;
    /**
     * 支付方式:apple_in_app
     * @see com.cloud.trade.order.enums.PayWayEnum
     */
    @NotEmpty(message ="支付方式不允许为空")
    private String payWay;
}
